package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)"`
	Password string `gorm:"type:varchar(64)"`
}
type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(30)"`
}
type Node struct {
	gorm.Model
	NodeName string `gorm:"type:varchar(30)"`
}
type UserRole struct {
	gorm.Model
	UserID int `gorm:"type:int"`
	RoleId int `gorm:"type:int"`
}
type RoleNode struct {
	gorm.Model
	RoleID int `gorm:"type:int"`
	NodeId int `gorm:"type:int"`
}
type Car struct {
	gorm.Model
	CarName string `gorm:"type:varchar(30)"`
}
type Order struct {
	gorm.Model
	OrderNum   int `gorm:"type:int"`
	OrderPrice int `gorm:"type:int"`
	CarID      int `gorm:"type:int"`
}
type List struct {
	CarName    string
	OrderNum   int
	OrderPrice int
}
